var express = require('express');
var app = express();

app.get('/', function (req, res) {
    res.end('ok');
});
app.use(express.static(__dirname + '/public'));  //将文件托管到静态资源下
app.listen(8000);